package com.pluto.cloud.example.dao;

import com.pluto.cloud.example.domain.User;
import org.springframework.data.repository.CrudRepository;

import javax.transaction.Transactional;
import java.util.List;

/**
 * Created by Administrator on 2016/8/16.
 */
@Transactional
public interface UserDao extends CrudRepository<User,Integer>{

    public User findById(Integer id);

    public List<User> findAll();
}
